kaldin

  • Login

C Programming


1) Which of the following statements are correct about an array?

1:    The array int num[26]; can store 26 elements.
2:    The expression num[1] designates the very first element in the array.
3:    It is necessary to initialize the array at the time of declaration.
4:    The declaration num[SIZE] is allowed if SIZE is a macro.
  • A)

  • B)

  • C)

  • D)

Next
Show Answer:
Show Answer


More Question
Point out the error in the following program. #includestdio.h#includestdarg.hvoid varfun(int n, ...);int main() varfun(3, 7, -11.2, 0.66); return 0;void varfun(int n, ...) float ptr; int num; va_start(ptr, n); num = va_arg(ptr, int); printf(d, num);
What will be the output of the program #includestdio.hint main() int i=2; printf(d, d\n, ++i, ++i); return 0;
Which of the following statements are correct about the function long fun(int num) int i; long f=1; for(i=1; i=num; i++) f = f i; return f;
A preprocessor directive is a message from programmer to the preprocessor.
Point out the error in the following program. #includestdio.hint main() struct emp char name[20]; float sal; ; struct emp e[10]; int i; for(i=0; i=9; i++) scanf(s f, e[i].name, &e[i].sal); return 0;